From b22145a7785544443972f2517aa022f2e6fe2138 Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Mon, 2 Oct 2006 11:06:10 -0400 Subject: [PATCH] [XEN][POWERPC] Flush all of text per CPU in case the loader did not Signed-off-by: Jimi Xenidis Signed-off-by: Hollis Blanchard --HG-- extra : transplant_source : %85%C4%82%F3%0A%0A%B7%E9%D8s%031%E7%7C%9E%20-%8E%A6%B1 --- xen/arch/powerpc/powerpc64/exceptions.S | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xen/arch/powerpc/powerpc64/exceptions.S b/xen/arch/powerpc/powerpc64/exceptions.S index 78ab31fb29..224568bfc1 100644 --- a/xen/arch/powerpc/powerpc64/exceptions.S +++ b/xen/arch/powerpc/powerpc64/exceptions.S @@ -564,6 +564,18 @@ _GLOBAL(sleep) */ .globl spin_start spin_start: + + /* Do a cache flush for our text, in case the loader didn't */ + LOADADDR(r9, _start) + LOADADDR(r8, _etext) +4: dcbf r0,r9 + icbi r0,r9 + addi r9,r9,0x20 /* up to a 4 way set per line */ + cmpld cr0,r9,r8 + blt 4b + sync + isync + /* Write our processor number as an acknowledgment that we're alive. */ LOADADDR(r14, __spin_ack) stw r3, 0(r14) -- 2.30.2